
package com.lb.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * TODO
 *
 * @author libin
 * @version V1.0
 * @since 2023-07-28 10:47
 **/
@Slf4j
@RestController
@RequestMapping("/sms")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SmsController {

    @Value("${server.port}")
    private String port;

    @PostMapping(value = "/call")
    public String call() {

        log.info("我被调用了,端口是:{}", port);
        return "调用成功了";
    }

}